﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace strategyPatternSample2
{
    class Program
    {
        static void Main(string[] args)
        {
            animal animalMamal = new mamal();
            animalMamal.exist();
            animalMamal.performLiving();
            animalMamal.iam();

            Console.ReadKey();

            animal animalFish = new fish();
            animalFish.exist();
            animalFish.performLiving();
            animalFish.iam();

            Console.ReadKey();

            mamal mamalDog = new dog();
            mamalDog.name();
            mamalDog.performTalking();

            Console.ReadKey();
        }
    }
}
